/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.service.video;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.source.dao.video.EleSourceVideoDao;
import com.thinkgem.jeesite.modules.source.entity.video.EleSourceVideo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 视频资源管理Service
 * @author ZC
 * @version 2017-04-24
 */
@Service
@Transactional(readOnly = true)
public class EleSourceVideoService extends CrudService<EleSourceVideoDao, EleSourceVideo> {

	
	public EleSourceVideo get(String id) {
		return super.get(id);
	}
	
	public List<EleSourceVideo> findList(EleSourceVideo eleSourceVideo) {
		return super.findList(eleSourceVideo);
	}
	
	public Page<EleSourceVideo> findPage(Page<EleSourceVideo> page, EleSourceVideo eleSourceVideo) {
		return super.findPage(page, eleSourceVideo);
	}
	
	@Transactional(readOnly = false)
	public void save(EleSourceVideo eleSourceVideo) {
		super.save(eleSourceVideo);
	}
	
	@Transactional(readOnly = false)
	public void delete(EleSourceVideo eleSourceVideo) {
		super.delete(eleSourceVideo);
	}

	public List<EleSourceVideo> getByGroupId(String groupId){
		return dao.getByGroupId(groupId);
	}
}